             nodeType: "standard",
             eventName: nil,
             variable: nil)
-        conversation.createDialogNode(workspaceID: workspaceID, properties: dialogNode, failure: failWithError) {
-            node in
+        conversation.createDialogNode(workspaceID: workspaceID, properties: dialogNode) {
+            response, error in
+
+            if let error = error {
+                XCTFail("Unexpected error response from service: \(error)")
+                return
+            }
+            guard let node = response?.result else {
+                XCTFail("Missing response value")
+                return
+            }
+
             XCTAssertEqual(dialogNode.dialogNode, node.dialogNodeID)
             XCTAssertEqual(dialogNode.description, node.description)
             XCTAssertEqual(dialogNode.conditions, node.conditions)

        var intents: [RuntimeIntent]?
        var output: OutputData?

        conversation.message(workspaceID: workspaceID, failure: failWithError) {
            response in
            context = response.context
            expectation1.fulfill()
        }
        waitForExpectations()

        let description = "List all the entities in a workspace with export as true."
        let expectation = self.expectation(description: description)

        conversation.listEntities(workspaceID: workspaceID, export: true, includeAudit: true) {
            response, error in

            if let error = error {
                XCTFail("Unexpected error response from service: \(error)")
                return
            }
            guard let entities = response?.result else {
                XCTFail("Missing response value")
                return
            }

            for entity in entities.entities {
                XCTAssertNotNil(entity.entityName)
                XCTAssertNotNil(entity.created)
