added test for checking invalid bounds for copy function