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