             // XCTAssertEqual(failingURL, testURL)
             XCTAssertEqual(error.code, stubbedError.code)
             XCTAssertEqual(error.domain, stubbedError.domain)
-            expectation.fulfill()
-        }
-        
-        let success = { (imgDownload: WMFImageDownload) in
-            XCTFail()
-            expectation.fulfill()
-        }
-        
-        self.imageController.fetchImageWithURL(testURL, failure:failure, success: success)
-        
-        waitForExpectations(timeout: WMFDefaultExpectationTimeout) { (error) in
-        }
-    }
-
-    // MARK: - Cancellation
-
-    func testCancelingDownloadCatchesWithCancellationError() {
-        let testURL = URL(string:"https://foo")!
-        let observationToken =
-            NotificationCenter.default.addObserver(forName: NSNotification.Name.SDWebImageDownloadStart, object: nil, queue: nil) { _ -> Void in
-            self.imageController.cancelFetchForURL(testURL)
-        }
-        URLProtocol.registerClass(WMFHTTPHangingProtocol.self)
-        defer {
-            URLProtocol.unregisterClass(WMFHTTPHangingProtocol.self)
-            NotificationCenter.default.removeObserver(observationToken)
-        }
-        
-        let expectation = self.expectation(description: "wait for image download");
-        
-        let failure = { (error: Error) in
-            let error = error as NSError
-            XCTAssert(error.code == NSURLErrorCancelled)
             expectation.fulfill()
         }
         

        }
        
        imageController.fetchImageWithURL(testURL, failure:failure, success: success)
        
        waitForExpectations(timeout: WMFDefaultExpectationTimeout) { (error) in
        }
        
        NotificationCenter.default.removeObserver(observationToken)
        

        
        URLProtocol.registerClass(WMFHTTPHangingProtocol.self)
        

        let failure = { (error: Error) in
        }
        
        let success = { (imgDownload: WMFImageDownload) in
        }
        
        let observationToken =
