Clone test arguments
If a test uses @depenends, clone the objects that are passed into functions that use that argument. This prevents unintended modification of the objects value by other functions.
Fixes #1057