fixed ModelFactory test