             }
             theo.fetchRelationshipsForNode(nodeIDWithRelationships, direction: RelationshipDirection.ALL, types: nil, completionBlock: {(relationships, error) in
                 
-                XCTAssert(relationships.count >= 1, "Relationships must be exist")
+                XCTAssert(relationships.count >= 1, "Relationships must exist")
                 XCTAssertNil(error, "Error should be nil \(error)")
                 
-                if let foundRelationship: Relationship = relationships[0] as Relationship! {
+                if let foundRelationship: Relationship = relationships.first {
 
                     let updatedProperties: Dictionary<String, AnyObject> = ["updatedRelationshipProperty" : "updatedRelationshipPropertyValue" as AnyObject]
                     


        self.waitForExpectations(timeout: TheoTimeoutInterval, handler: {error in
          XCTAssertNil(error, "\(error)")
        })
    }
    

import XCTest

let TheoTimeoutInterval: TimeInterval = 10
var TheoNodeID: String                  = "100"
var TheoNodeIDForRelationship: String   = "101"
let TheoNodePropertyName: String        = "title"

class ConfigLoader: NSObject {
