     
         waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })
     }
-*/
-    func testAlamo(){
-        
-        let expectation = expectationWithDescription("Test URLGetRankedImageKeywords")
-        
-        serviceVision.urlGetRankedImageKeywords(test_url, forceShowAll: true, knowledgeGraph: 1, completionHandler: { response in
-            
-            // add some logic here for testing
-            expectation.fulfill()
-        })
-
-        
-        /*
-        
-        serviceVision.urlGetRankedImageKeywords(test_url, forceShowAll: true, knowledgeGraph: 1, callback: { response, resultStatus in
-            
-            // add some logic here for testing
-            expectation.fulfill()
-        })
-        */
-        waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })
-    }
-    
-    /*
-    
-    func testURLGetRankedImageKeywordsJSON(){
-        
-        let expectation = expectationWithDescription("Test URLGetRankedImageKeywords")
-        
-        serviceVision.urlGetRankedImageKeywords(test_url, outputMode: AlchemyConstants.OutputMode.JSON, forceShowAll: true, knowledgeGraph: 1, callback: { response, resultStatus in
-            
-            XCTAssertNotNil(response, "Response is nil.")
-            
-            XCTAssertNotNil(resultStatus, "Error is nil.")
-            
-            XCTAssertEqual(resultStatus.status, "OK")
-            
-            XCTAssertEqual(resultStatus.statusInfo, "")
-            
-            XCTAssertGreaterThan(response.totalTransactions, 3)
-            
-            XCTAssertEqual(response.imageKeyWords.count, 1)
-            
-            XCTAssertEqual(response.imageKeyWords[0].text, "person")
-            
-            XCTAssertGreaterThan(response.imageKeyWords[0].score, 0.90)
-            
-            // add some logic here for testing
-            expectation.fulfill()
-        })
-        
-        waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })
-    }
-*/
-    
 }

    
    /**
    This will test an invalid API key for all three segments of Vision, Language and Data

    func testInvalidAPIKey() {
        
        let expectation = expectationWithDescription("Test Invalid API Key")
        
        let service : VisionImpl = VisionImpl( apiKey: "WRONG")
        
        service.urlGetRankedImageKeywords(test_url, outputMode: AlchemyConstants.OutputMode.XML, forceShowAll: true, knowledgeGraph: 1, callback: { response, resultStatus in
            
            XCTAssertNil(response, "Response is not nil.")
            
            XCTAssertNotNil(resultStatus, "Error is nil.")
            
            XCTAssertEqual(resultStatus.status, "ERROR")
            
            XCTAssertEqual(resultStatus.statusInfo, "invalid-api-key")
            
            expectation.fulfill()
        })

            
            XCTAssertNotNil(response, "Response is nil.")
            
            Log.sharedLogger.verbose("add result return value ")
          //  XCTAssertNotNil(resultStatus, "Error is nil.")
            
     //       XCTAssertEqual(resultStatus.status, "OK")
            
     //       XCTAssertEqual(resultStatus.statusInfo, "")
            
            XCTAssertGreaterThan(response.totalTransactions, 3)
            
