         waitForExpectations()
     }
 
-    func testUpdateLocationAuthorizationFailure() {
+    func testStartUpdatingLocation_WhenAuthorizationFails_CompletesWithError() {
         CLLocationManagerMock._authorizationStatus = .notDetermined
         let expectation = self.expectation(description: "onFailure fulfilled for future")
         let future = self.locationManager.startUpdatingLocation(authorization: .authorizedAlways)

        waitForExpectations()
    }
    
    func testUpdateLocationFailure() {
        CLLocationManagerMock._authorizationStatus = .authorizedAlways
        let expectation = self.expectation(description: "onFailure fulfilled for future")
        let context = ImmediateContext()
        let future = self.locationManager.startUpdatingLocation(authorization: .authorizedAlways, context: context)
        future.onSuccess(context) {locations in
            XCTAssert(false, "onSuccess called")

        waitForExpectations()
    }

    func testAllowDeferredLocationUpdatesUntilTraveled_WhenUpdateSucceeds_CompletesSuccessfully() {
        CLLocationManagerMock._authorizationStatus = .authorizedAlways
        let expectation = self.expectation(description: "onSuccess fulfilled for future")
        let future = self.locationManager.allowDeferredLocationUpdatesUntilTraveled(1000.0, timeout: 300.0)
