Minor refactoring to httpBackend on Angular test