Testcase for copy and move.