     try! tbd.determine(value)
 
     tbd.notify {
-      XCTAssert( $0 == value )
+      XCTAssert( $0.value == value )
       e1.fulfill()
     }
     waitForExpectationsWithTimeout(1.0, handler: nil)

      }
    }

    let first = firstCompleted(deferreds)
    XCTAssert(first.value == lucky)
    waitForExpectationsWithTimeout(1.0, handler: nil)
  }


    var value = arc4random()
    tbd.notify {
      XCTAssert( $0.value == value )
      e2.fulfill()
    }

