Mocking $http during Unit testing