creates a test for copy experiment, fixes bugs, and refactors