Updated the testFactoryOk