         }
         actionPrms.then(
             onFulfilled: { (value) -> Any? in
-                XCTAssertEqual((value as String), value1, " ")
+                XCTAssertEqual((value as String), value1)
                 expectation.fulfill()
                 return nil
             },

    func test_init()
    {
        let pendingPrms = APlusPromise()
        XCTAssertNotNil(pendingPrms, " ")
        XCTAssertEqual(pendingPrms.state, APlusPromise.State.Pending, " ")
        XCTAssertTrue(pendingPrms.value == nil, " ")
        XCTAssertTrue(pendingPrms.reason == nil, " ")

        (pendingPrms.value as APlusPromise?) == nil
        
        let fulfulledPrms = APlusPromise(value: "A value")
        XCTAssertNotNil(fulfulledPrms, " ")
        XCTAssertEqual(fulfulledPrms.state, APlusPromise.State.Fulfilled, " ")
        XCTAssertEqual((fulfulledPrms.value as String), "A value", " ")
        XCTAssertTrue(fulfulledPrms.reason == nil, " ")

        let error = NSError()
        let rejectedPrms = APlusPromise(reason: error)
        XCTAssertNotNil(rejectedPrms, " ")
        XCTAssertEqual(rejectedPrms.state, APlusPromise.State.Rejected, " ")
        XCTAssertTrue(rejectedPrms.value == nil, " ")
        XCTAssertEqual((rejectedPrms.reason as NSError), error, " ")
    }
    
    func test_initWithAction()

        let actionPrms = APlusPromise { (resolve, reject) -> Void in
        }
        
        XCTAssertNotNil(actionPrms)
        XCTAssertEqual(actionPrms.state, APlusPromise.State.Pending)
        XCTAssertTrue(actionPrms.value == nil)
        XCTAssertTrue(actionPrms.reason == nil)
        
        let actionPrmsFulfill = APlusPromise { (resolve, reject) -> Void in
            resolve(value: value1)
