test case for call by value