There was a bug in the previous implementation which used to pass the argument as a value but that does not work because we need to change the value of it. The new implementation uses pass by reference. Create a test to cover this scenario.