Cleanup FactoryTest.