AngularJS end-to-end testing: how to mock a real backend http request