 
   func testData_DoubleCancellation() throws
   {
-    let deferred: Deferred<(Data, HTTPURLResponse)> = {
+    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() }

      XCTFail("succeeded incorrectly")
    }
    catch let error as URLError {
      XCTAssertEqual(error.code, .cancelled)
    }


  }



  func testDownload_NotFound() throws
  {
