fix test_copy