     d4.onValue { _ in e4val.fulfill() }
     d4.onError { _ in XCTFail() }
 
-    let d5 = Deferred<Void>(error: NSError(domain: "", code: 0, userInfo: nil)).delay(ms: 50)
+    let d5 = Deferred<Int>(error: NSError(domain: "", code: 0, userInfo: nil)).delay(ms: 50)
     let e5err = expectationWithDescription("Test onError()")
-    d5.onValue(QOS_CLASS_USER_INITIATED) { _ in XCTFail() }
-    d5.onError(QOS_CLASS_UTILITY) { _ in e5err.fulfill() }
+    d5.onValue { _ in XCTFail() }
+    d5.onError { _ in e5err.fulfill() }
 
     waitForExpectationsWithTimeout(1.0, handler: nil)
   }


    let value1 = Int(arc4random() & 0x3fff_ffff)
    let value2 = Int(arc4random() & 0x3fff_ffff)
    let deferred = Deferred(value: value1).apply(QOS_CLASS_USER_INITIATED, transform: Deferred(value: curriedSum(value2)))
    XCTAssert(deferred.value == value1+value2)
  }


    let d2 = Deferred(value: value).delay(ms: 100)
    let a2 = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_BACKGROUND, 0)
    let q2 = dispatch_queue_create("Test", a2)
    d2.on(q2).notify(qos: QOS_CLASS_UTILITY) {
      XCTAssert( $0.value == value )
      e2.fulfill()
    }
