Added test for $http based service