it("must work event if the optional error callback is passed", function () {
          $http.get('http://localhost', utilities.noop, {withCredentials: true});
          assert.isTrue(xhr.withCredentials);
        });