       assert.equal typeof res.body.document._id, 'string'
 
       id = new ObjectID(res.body.document._id)
-      cache.getCol('turer').findOne _id: id, (err, d) ->
+      cache.getCol('steder').findOne _id: id, (err, d) ->
         assert.ifError(err)
         assert.equal typeof d, 'object'
         assert.deepEqual d[key], val for key, val of doc
         done()
 
-  it 'should override tilbyder and opprettet fields', (done) ->
-    doc = gen.gen include: ['endret'], static: tilbyder: 'MINAPP'
-    req.post(url).send(doc).expect(201).end (err, res) ->
-      assert.ifError(err)
-
-      id = new ObjectID(res.body.document._id)
-      cache.getCol('turer').findOne _id: id, (err, d) ->
-        assert.ifError(err)
-        assert.notEqual d.tilbyder, doc.tilbyder
-        assert.notEqual d.endret, doc.endret
-        assert.deepEqual d[key], val for key, val of doc when key not in ['tilbyder', 'endret']
+  it 'should override tilbyder, endret and checksum fields', (done) ->
+    doc.tilbyder = 'MINAPP'
+    doc.endret   = new Date().toISOString()
+    doc.checksum = '332dcf1830ec8e2c9bdc574b29515047'
+
+    req.post(url).send(doc).expect(201).end (err, res) ->
+      assert.ifError(err)
+
+      doc._id = new ObjectID(res.body.document._id)
+      cache.getCol('steder').findOne _id: doc._id, (err, d) ->
+        assert.ifError(err)
+
+        ignore = ['tilbyder', 'endret', 'checksum']
+        assert.notEqual d[key], val for key, val of doc when key in ignore
+        assert.deepEqual d[key], val for key, val of doc when key not in ignore
         done()
 
   it 'should handle rapid requests to collection', (done) ->
     this.timeout(5000)
 
     count = 100
-    docs  = gen.gen(count)
-
-    for doc in docs
+    for i in [0..count]
+      doc = JSON.parse(JSON.stringify(steder[i]))
+      delete doc._id
+      delete doc.tilbyder
+      delete doc.endret
+      delete doc.checksum
+
       req.post(url).send(doc).expect(201).end (err, res) ->
         assert.ifError(err)
         assert.equal res.body.count, 1

    count = cols.length

    for col in cols
      req.get(url.replace('turer', col))
        .expect(404)
        .end (err, res) ->
          assert.ifError(err)

      done()

  it 'should warn about missing status field', (done) ->
    delete doc.status
    req.post('/steder?api_key=dnt').send(doc).expect(201).end (err, res) ->
      assert.ifError(err)
      assert res.body.warnings, [{
        resource: 'steder'
        field: 'status'
        value: 'Kladd'
        code: 'missing_field'
