(edit) unit testing using $httpBackend is giving some errors