test for copy, small bugfix