jasmine.ObjectFactory finds the correct constructor function if no factory is defined considers variants (from jasmine.specs)