fixed ObjectFactoryTest