     usleep(1000)
   }
 
-  func testCancel1()
+  func testCancel()
   {
     let d1 = Deferred(qos: QOS_CLASS_UTILITY) {
       () -> UInt32 in

    let e1 = expectationWithDescription("first deferred")
    d1.onValue { _ in XCTFail() }
    d1.onError { _ in e1.fulfill() }

    let d2 = d1.map  { $0 + 100 }
    let e2 = expectationWithDescription("second deferred")
    d2.onValue { _ in XCTFail() }
    d2.onError { _ in e2.fulfill() }

    d1.cancel()

    waitForExpectationsWithTimeout(1.0) { _ in tbd.cancel() }
  }

  func testTimeout()

    XCTAssert(d2.cancel("message") == false)
  }

  func testCancelAndNotify()
  {
    let tbd = TBD<Int>()

