         let description = "List all dialog nodes"
         let expectation = self.expectation(description: description)
 
-        assistant.listDialogNodes(workspaceID: workspaceID, includeCount: true, failure: failWithError) { nodes in
+        assistant.listDialogNodes(workspaceID: workspaceID, includeCount: true) {
+            response, error in
+
+            guard let nodes = response?.result else {
+                self.failPositiveTest(error)
+                return
+            }
+
             for node in nodes.dialogNodes {
                 XCTAssertNotNil(node.dialogNodeID)
             }

        let expectation2 = self.expectation(description: description2)

        let updatedText = "updated-"+newExample
        assistant.updateCounterexample(workspaceID: workspaceID, text: newExample, newText: updatedText, failure: failWithError) { counterexample in
            XCTAssertEqual(counterexample.text, updatedText)
            expectation2.fulfill()
        }

        let description = "List all the examples of an intent."
        let expectation = self.expectation(description: description)

        assistant.listExamples(workspaceID: workspaceID, intent: "weather", includeAudit: true) {
            response, error in

            guard let examples = response?.result else {
                self.failPositiveTest(error)
                return
            }

            for example in examples.examples {
                XCTAssertNotNil(example.created)
                XCTAssertNotNil(example.updated)
