         let docID = "doc"
         let content = "I am a blob".data(using: .utf8)!
         var blob = Blob(contentType: "text/plain", data: content)
+        
+        let config = getConfig(.pull)
+        var resolver: TestConflictResolver!
+        
+        // RESOLVE WITH REMOTE and BLOB data in LOCAL
         var localData: [String: Any] = ["key1": "value1", "blob": blob]
         var remoteData: [String: Any] = ["key2": "value2"]
-        let config = getConfig(.pull)
-        var resolver: TestConflictResolver!
-        
-        // RESOLVE WITH REMOTE and BLOB data in LOCAL
         try makeConflict(forID: docID, withLocal: localData, withRemote: remoteData)
         resolver = TestConflictResolver() { (conflict) -> Document? in
             return conflict.remoteDocument

        XCTAssert(db.document(withID: docID)!.toDictionary() == localData)
        
        // RESOLVE WITH REMOTE with BLOB data
        blob = Blob(contentType: "text/plain", data: content)
        localData = ["key1": "value1"]
        remoteData = ["key2": "value2", "blob": blob]
        try makeConflict(forID: docID, withLocal: localData, withRemote: remoteData)
        resolver = TestConflictResolver() { (conflict) -> Document? in
            return conflict.remoteDocument

        run(config: config, expectedError: nil)
        
        XCTAssertEqual(db.count, 1)
        XCTAssertEqual(resolver.winner!, db.document(withID: "doc")!)
        XCTAssert(db.document(withID: "doc")!.toDictionary() == localData)
    }
    
    func testConflictResolverNullDoc() throws {
        let localData = ["name": "Hobbes"]
        let remoteData = ["pattern": "striped"]
        try makeConflict(forID: "doc", withLocal: localData, withRemote: remoteData)
        
        let config = getConfig(.pull)
        let resolver = TestConflictResolver() { (conflict) -> Document? in
            return nil
        }
