fixed entityfactorytest