                         query      : {file_use:obj[0]}
                         cb         : cb
                 (x, cb) ->
-                    expect(x).toEqual({insert: obj[0]})
+                    expect(x).toEqual({action:'insert', new_val: obj[0]})
 
                     db.user_query   # insert first object
                         account_id : accounts[0]
                         query      : {file_use:obj[1]}
                         cb         : cb
                 (x, cb) ->
-                    expect(x).toEqual({insert: obj[1]})
+                    expect(x).toEqual({action:'insert', new_val: obj[1]})
                     cb()
             ], done)
 


                (x, cb) ->
                    obj2.id = db.sha1(obj2.project_id, obj2.path)
                    expect(x).toEqual({insert:obj2})

                    # now delete the first entry (not through file_use, but directly)
                    db._query

                (x, cb) ->
                    # note how chat gets recursively MERGED IN -- not replacing users. (so tricky under the hood to implement...)
                    obj.last_edited = t2
                    expect(x).toEqual({action:'update', new_val: obj})

                    # add a second file_use entry
                    db.user_query
