         addCompletionBlockToTestOperation(operation, withExpectation: expectationWithDescription("Test: \(__FUNCTION__)"))
         runOperation(operation)
         waitForExpectationsWithTimeout(3, handler: nil)
-
-        XCTAssertEqual(receivedMessages.count, 2)
-        XCTAssertEqual(receivedMessages[1], "Test Logging Operation: finished with error(s): [Operations.BlockCondition.Error.BlockConditionFailed].")
+        XCTAssertTrue(receivedMessages.contains("Test Logging Operation: finished with error(s): [Operations.BlockCondition.Error.BlockConditionFailed]."))
     }
 }
 

        addCompletionBlockToTestOperation(operation, withExpectation: expectationWithDescription("Test: \(__FUNCTION__)"))
        runOperation(operation)
        waitForExpectationsWithTimeout(3, handler: nil)

        print("*** \(receivedMessages)")

        XCTAssertEqual(receivedMessages.count, 5)
        XCTAssertEqual(receivedMessages[1], "Test Logging Operation: did produce operation: Test Operation.")
    }
}


        runOperation(operation)
        operation.cancel()
        waitForExpectationsWithTimeout(3, handler: nil)
        XCTAssertTrue(receivedMessages.contains("Test Logging Operation: did cancel."))
    }
}

