Create Factory and FactoryTests