 
   func testDownload_SuspendCancel() throws
   {
-    let url = URL(string: "http://127.0.0.1:65521/image.jpg")!
-    let session = URLSession(configuration: .default)
-
-    let deferred = session.deferredDownloadTask(with: url)
+    let session = URLSession(configuration: .default)
+
+    let deferred = session.deferredDownloadTask(with: unavailableURL)
     deferred.urlSessionTask.suspend()
     let canceled = deferred.cancel()
     XCTAssert(canceled)

  func testData_DoubleCancellation() throws
  {
    let deferred: DeferredURLSessionTask<(Data, HTTPURLResponse)> = {
      let url = URL(string: "http://127.0.0.1:65521/image.jpg")!
      let session = URLSession(configuration: .default)
      defer { session.finishTasksAndInvalidate() }

      return session.deferredDataTask(with: url)
    }()

    deferred.urlSessionTask.cancel()

import deferred

let baseURL = URL(string: "http://www.somewhere.com/")!
let unavailableURL = URL(string: "http://127.0.0.1:65521/image.jpg")!

public class TestURLServer: URLProtocol
{
