Tests for clone factory.