             let image = UIImage(data: photoNSData)
             
             XCTAssertNotNil(image)
+            
             // Upload Image
-            
         //push to object storage, then on success push to cloudant sync
         ObjectStorageDataManager.SharedInstance.objectStorageClient.uploadImage(FBUserID, imageName: imageName, image: image!,
             onSuccess: { (imageURL: String) in

    
    var imageNames: [String: String]!
    
    var imageCount: Int!
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.

     */
    func postPhotoForTests(FBUserID: String!) {
        print("uploading photo to object storage...")
        var imageCount = self.imageNames.count //keep track of how many images left to upload
        
        for (picture_name, caption) in self.imageNames { //loop through all images
            let imageName = picture_name + ".JPG"
            let highResImage = UIImage(named : picture_name)
