Prepared test to use $httpBackend mocks.