         
     }
     
-    func testInvalidTextGetLanguage() {
-        
-        let invalidExpectation = expectationWithDescription("invalid")
-        
-        instance.getLanguage(requestType: .Text,
-            html: nil,
-            url: nil,
-            text: "") {
+    func testInvalidURLGetLanguage() {
+        
+        let invalidExpectation = expectationWithDescription("invalid")
+        
+        instance.getLanguage(requestType: .URL,
+            html: nil,
+            url: "http://www.keywordAnalysisDotComShouldNotExist.com",
+            text: nil) {
                 
                 (error, language) in
                 

                XCTAssertNotNil(language.nativeSpeakers)
                XCTAssertNotNil(language.wikipedia)
                
                validExpectation.fulfill()
                
        }
        
        waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })
        
    }
    
    func testInvalidURLGetLanguage() {
        
        let invalidExpectation = expectationWithDescription("invalid")
        
        instance.getLanguage(requestType: .URL,
            html: nil,
            url: "http://www.keywordAnalysisDotComShouldNotExist.com",
            text: nil) {
                
                (error, language) in
                
                XCTAssertNotNil(language)
                XCTAssertNil(language.ethnologue)
                XCTAssertNil(language.wikipedia)
                XCTAssertNotNil(language.language)
                
                invalidExpectation.fulfill()
                
        }
        
        waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })
        
    }
    
    func testTextGetLanguage() {
        
        let validExpectation = expectationWithDescription("valid")
        
        instance.getLanguage(requestType: .Text,
            html: nil,
            url: nil,
            text: test_text_valid) {
                
                (error, language) in
                

                
                (error, language) in
                
                // TODO: Resolve AlchemyLanguage API returning English for HTML calls. Invalid tests for URL, Text differ.
                XCTAssertNotNil(language)
                XCTAssertNotNil(language.language)
                XCTAssertNotNil(language.iso6391)
