     }
     
     func testDiscovered() {
+        let onSuccessExpectation = expectationWithDescription("onSuccess fulfilled for future")
         let future = MockValues.afterDiscoveredPromise.future
-        let onSuccessExpectation = expectationWithDescription("onFailure fulfilled for future")
         future.onSuccess {characteristic in
             onSuccessExpectation.fulfill()
         }
         future.onFailure {error in
-            XCTAssert(false, "futureComleted onFailure called")
+            XCTAssert(false, "onFailure called")
         }
         self.impl.didDiscover(self.mock)
         waitForExpectationsWithTimeout(2) {error in

    }
    
    func testWriteDataSuccess() {
        
    }

    func testWriteDataFailed() {
        
    }

    func testWriteDataTimeOut() {
        
    }

    func testWriteDataNotWrteable() {

import XCTest
import CoreBluetooth
import BlueCapKit

struct TestFailure {
    static let error = NSError(domain:"BlueCapKit Tests", code:100, userInfo:[NSLocalizedDescriptionKey:"Testing"])
}

class CharacteristicTests: XCTestCase {

