             url: nil,
             text: nil) {
                 
-                (error, sentiment) in
-                
-                XCTAssertNotNil(sentiment.docSentiment)
-                
-                if let docSentiment = sentiment.docSentiment {
-                    
-                    let sentimentMixed = docSentiment.mixed
-                    let sentimentType = docSentiment.type
-                    
-                    XCTAssertEqual(sentimentMixed, "1")
+                (error, sentimentResponse) in
+                
+                XCTAssertNotNil(sentimentResponse.docSentiment)
+                
+                if let sentiment = sentimentResponse.docSentiment {
+                    
+                    let sentimentMixed = sentiment.mixed
+                    let sentimentScore = sentiment.score
+                    let sentimentType = sentiment.type
+                    
+                    XCTAssertNotNil(sentimentMixed)
+                    XCTAssertNotNil(sentimentScore)
+                    
+                    if let sentimentMixed = sentimentMixed {
+                        
+                        XCTAssertEqual(sentimentMixed, 1)
+                        
+                    }
+                    
                     XCTAssertEqual(sentimentType, "negative")
                     
                     validExpectation.fulfill()
                     
                 }
-
+                
         }
         
         waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })

            sentimentType: AlchemyLanguageConstants.SentimentType.Targeted,
            sentimentParameters: parameters) {
                
                (error, sentiment) in
                
                XCTAssertNotNil(sentiment.docSentiment)
                
                if let docSentiment = sentiment.docSentiment {
                    
                    let sentimentMixed = docSentiment.mixed
                    let sentimentType = docSentiment.type
                    
                    XCTAssertEqual(sentimentMixed, "1")
                    XCTAssertEqual(sentimentType, "negative")
                    
                    validExpectation.fulfill()
                    
                }
                
        }

            url: "http://en.wikipedia.org/wiki/Vladimir_Putin",
            text: nil) {
                
                (error, sentimentResponse) in
                
                XCTAssertNotNil(sentimentResponse.docSentiment)
                
                if let sentiment = sentimentResponse.docSentiment {
                        
                        let sentimentMixed = sentiment.mixed
                        let sentimentScore = sentiment.score
                        let sentimentType = sentiment.type
                        
                        XCTAssertNotNil(sentimentMixed)
                        XCTAssertNotNil(sentimentScore)
                        
                        if let sentimentMixed = sentimentMixed {
                            
                            XCTAssertEqual(sentimentMixed, 1)
                            
                        }
                        
                        XCTAssertEqual(sentimentType, "negative")
                        
                        validExpectation.fulfill()
                        
                }
                
        }
