Fix jasmine.Any and a toThrow test