         .query({$page: true, $values: FIELD_NAMES})
         .set('Accept', 'application/json')
         .end (err, res) ->
-          assert.ok(!err, 'no errors')
+          assert.ok(!err, "No errors: #{err}")
           assert.ok(!!data = res.body, 'got data')
           assert.ok(_.isArray(data.rows), 'cursor values is an array')
           for json in data.rows

        .query({$page: true, $limit: LIMIT, $offset: OFFSET})
        .set('Accept', 'application/json')
        .end (err, res) ->
          assert.ok(!err, 'no errors')
          assert.ok(!!data = res.body, 'got data')
          assert.equal(data.total_rows, MODELS_JSON.length, 'has the correct total_rows')
          assert.equal(OFFSET, data.offset, 'has the correct offset')

        .query({$page: true, $limit: LIMIT})
        .set('Accept', 'application/json')
        .end (err, res) ->
          assert.ok(!err, "No errors: #{err}")
          assert.ok(!!data = res.body, 'got data')
          assert.ok(data.rows, 'received models')
          assert.equal(data.total_rows, MODELS_JSON.length, 'has the correct total_rows')
