rotate_copy and tests