change test_clone_factory to mock clone creation