     it 'Handles a find unique query on name with $select name', (done) ->
       Flat.cursor({$unique: ['name'], $select: ['name']}).toJSON (err, results) ->
         assert.ifError(err)
-        assert.equal(results.length, BASE_COUNT, "finds no extra results")
+        assert.equal(results.length, BASE_COUNT, 'finds no extra results')
         for result in results
           assert.equal(_.keys(result).length, 1, "finds only the $selected field")
           assert.equal(_.keys(result)[0], 'name', "finds only the $selected field")

    it 'Handles a find unique query with count', (done) ->
      Flat.count {$unique: 'name'}, (err, result) ->
        assert.ifError(err)
        assert.equal(result, BASE_COUNT, "finds no extra results")
        done()

    # TODO: test more edge cases
    it 'Handles a find unique query with count on empty collection', (done) ->
      Empty.count {$unique: 'name'}, (err, result) ->
        assert.ifError(err)
        assert.equal(result, 0, "finds no extra results")
        done()



    it 'Handles a find unique query on name with select (chaining)', (done) ->
      Flat.cursor().unique('name').select('id').toJSON (err, results) ->
        assert.ifError(err)
        assert.equal(results.length, BASE_COUNT, 'finds no extra results')
        for result in results
          assert.equal(_.keys(result).length, 1, "finds only the $selected field")
          assert.equal(_.keys(result)[0], 'id', "finds only the $selected field")
