         
     }
     
-    //    func testInvalidURLGetRankedKeywords()
+    func testInvalidURLGetRankedKeywords() {
+        
+        let invalidExpectation = expectationWithDescription("invalid")
+        
+        instance.getRankedKeywords(requestType: .URL,
+            html: nil,
+            url: "http://www.keywordAnalysisDotComShouldNotExist.com",
+            text: nil) {
+                
+                (error, keywords) in
+                
+                XCTAssertNotNil(keywords)
+                XCTAssertNotNil(keywords.language)
+                XCTAssertNil(keywords.keywords)
+                
+                if let language = keywords.language {
+                    
+                    XCTAssertEqual(language, "unknown")
+                    
+                }
+                
+                invalidExpectation.fulfill()
+                
+        }
+        
+        waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })
+        
+    }
     
     func testTextGetRankedKeywords() {
         

        
    }
    
    //    func testInvalidHTMLGetRankedKeywords()
    
    func testURLGetRankedKeywords() {
        

        
    }
    
    func testInvalidTextGetRankedKeywords() {
        
        let invalidExpectation = expectationWithDescription("invalid")
        
        instance.getRankedKeywords(requestType: .URL,
            html: nil,
            url: nil,
            text: test_get_text_sentiment_invalid) {
                
                (error, keywords) in
                
                XCTAssertNotNil(keywords)
                XCTAssertNil(keywords.language)
                XCTAssertNil(keywords.keywords)

                invalidExpectation.fulfill()
                
        }
        
        waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })
        
    }
    
    // MARK: Concept Tagging
    //    func testHTMLGetRankedConcepts()
