test case for assign local to arg