         print("URL: " + fileURL!.URLString)
         XCTAssertNotNil(fileURL)
         
-        service!.createModel("en-es", name: "custom-english-to-spanish", fileKey: "forced_glossary", fileURL: fileURL!) { model, error in
+        service.createModel("en-es", name: "custom-english-to-spanish", fileKey: "forced_glossary", fileURL: fileURL!) { model, error in
             
             XCTAssertNotNil(model, "Expected non-nil model to be returned.")
             Log.sharedLogger.error("\(error)")
             creationExpectation.fulfill()
             
-            self.service!.deleteModel(model!) { error in
+            self.service.deleteModel(model!) { error in
                 XCTAssertNil(error)
                 deletionExpectation.fulfill()
             }

        let unauthorizedDeleteExpectation = expectationWithDescription("Unauthorized expectation")
        let missingDeleteExpectation = expectationWithDescription("Missing delete expectation")
        
        service!.deleteModel("en-es") { error in
            XCTAssertNotNil(error, "Expected unauthorized exception when trying to delete an IBM model")
            unauthorizedDeleteExpectation.fulfill()
        }
        
        service!.deleteModel("qwerty") { error in
            XCTAssertNotNil(error!,"Expected missing delete exception when trying to delete a nonexistent model")
            missingDeleteExpectation.fulfill()
        }


class LanguageTranslationTests: XCTestCase {
    /// Language translation service
    private var service: LanguageTranslation!
    
    /// Timeout for an asynchronous call to return before failing the unit test
    private let timeout: NSTimeInterval = 60.0
