Test copy object.