pass by reference test case