testing $http calls with mock backend