test AJAX services using angularjs httpBackend.