             done()
 
       it 'adds an element when it matches', (done) ->
-        @collection.query {'x':5}, opts, (err, emitter) =>
+        @collection.query @client, {'x':5}, opts, (err, emitter) =>
           emitter.on 'diff', (diff) =>
             assert.deepEqual diff, [
               index: 0

          @collection.submit @docName, v:1, op:[{p:['x'], od:5, oi:6}], (err, v) =>

      it 'removes deleted elements', (done) -> @create {x:5}, =>
        @collection.query {'x':5}, opts, (err, emitter) =>
          assert.strictEqual emitter.data.length, 1

          emitter.on 'diff', (diff) =>

      opts = {poll}

      it 'returns a result it already applies to', (done) -> @create {x:5}, =>
        @collection.query @client, {'x':5}, opts, (err, emitter) =>
          expected = [docName:@docName, data:{x:5}, type:otTypes.json0.uri, v:1, c:@cName]
          assert.deepEqual emitter.data, expected
          emitter.destroy()
          done()

      it 'gets an empty result set when you query something with no results', (done) ->
        @collection.query @client, {'xyz':123}, opts, (err, emitter) ->
          assert.deepEqual emitter.data, []
          emitter.on 'diff', -> throw new Error 'should not have added results'

