         closeSession(sessionId)
     }
 
-    func testListImagesAndGetMetadataAndDelete() {
+    func testListImagesAndGetMetadata() {
 
         // startSession
         let sessionId = startSession()

        dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER)
    }

    func testTakePictureAndGetImage() {

        // startSession
        let sessionId = startSession()

                XCTAssert(data != nil && data!.length > 0)
                XCTAssertNotNil(UIImage(data: data!))

                // delete
                self.osc.delete(fileUri: fileUri!) { (data, response, error) in
                    XCTAssert(data != nil && data!.length > 0)
                    let jsonDic = try? NSJSONSerialization.JSONObjectWithData(data!, options: NSJSONReadingOptions.MutableContainers) as! NSDictionary
                    XCTAssert(jsonDic != nil && jsonDic!.count > 0)

                    let name = jsonDic!["name"] as? String
                    XCTAssert(name != nil && name! == "camera.delete")

                    let state = jsonDic!["state"] as? String
                    XCTAssert(state != nil && state! == "done")

                    dispatch_semaphore_signal(semaphore)
                }

            }
        }
        self.osc.takePicture(sessionId: sessionId, completionHandler: completionHandler)
