unique_copy and tests