         .get("/#{ROUTE}?$page&$limit=#{LIMIT}")
         .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(data.rows, 'received models')
           assert.equal(data.total_rows, MODELS_JSON.length, 'has the correct total_rows')

        .query({$page: true, $select: FIELD_NAMES})
        .set('Accept', 'application/json')
        .end (err, res) ->
          assert.ok(!err, 'no errors')
          assert.ok(!!data = res.body, 'got data')
          for json in data.rows
            assert.equal(_.size(json), FIELD_NAMES.length, 'gets only the requested values')

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