Tests that shares a parameter reference in user function.