     
     func testFilterNoSuchElement() {
         let e = self.expectation()
-        future(3).filter { $0 > 5}.onComplete { result in
+        Future.succeeded(3).filter { $0 > 5}.onComplete { result in
             if let err = result.error {
                 XCTAssert(err.code == ErrorCode.NoSuchElement.rawValue, "filter should yield no result")
             }

        let e = self.expectation()
        
        let finalString = "Greg"
        let flatMapped: Future<String> = future("Thomas").flatMap { _ -> Future<String> in
            return future(finalString)
        }
        
        flatMapped.onSuccess { s in

        XCTAssertEqual(dispatch_get_specific(&key), valuePointer, "value should have been set on the main (i.e. current) queue")
        
        let e = self.expectation()
        Future.succeeded(1).onSuccess(context: Queue.main.context) { val in
            XCTAssertEqual(dispatch_get_specific(&key), valuePointer, "we should now too be on the main queue")
            e.fulfill()
        }
