Add tearDown for a FactoryTest.