Add a test for copy