Add factoryTest.