                     @results.push data
                     return true
                 @display (_.isEqual(@results, expected_result)), query, @results
-                that.index++
-                that.test()
-                return false
-        expect_state: (query, cursor, expected_state, that) =>
-            @results = []
-            cursor.next (data) =>
-                if data?
-                    @results.push data
-                    return true
-                @display (_.isEqual(demo_server.dbs?.test.tables.test, expected_state)), query, demo_server.dbs?.test.tables.test
                 that.index++
                 that.test()
                 return false

        query = @queries[@index]
        if query?
            console.log query.query
            cursor = eval(query.query)
            @callback()[query.callback_name](query.query, cursor, query.expected_result, @)

            ###
            @index++
            @test()
            ###

    display: (success, query, results) ->
        if success is true

                that.index++
                that.test()
                return false
        is_doc_1: (query, cursor, expected_result, that) =>
            @results = []
            cursor.next (data) =>
