         done() if --count is 0
 
   it 'should convert _id to ObjectID if provided with one', (done) ->
-    doc = gen.gen include: ['_id']
+    doc._id = new ObjectID()
     req.post(url).send(doc).expect(201).end (err, res) ->
       assert.ifError(err)
       assert.equal res.body.document._id, doc._id
       done()
 
   it 'should update existing document', (done) ->
-    doc = JSON.parse(JSON.stringify(trip))
-    doc.navn = 'Testtur'
-    req.post(url).send(doc).expect(201).end (err, res) ->
-      assert.ifError(err)
-
-      cache.getCol('turer').findOne _id: new ObjectID(doc._id), (err, d) ->
+    doc = JSON.parse(JSON.stringify(steder[15]))
+    doc.navn = 'En oppdatert tur'
+    req.post(url).send(doc).expect(201).end (err, res) ->
+      assert.ifError(err)
+
+      cache.getCol('steder').findOne _id: new ObjectID(doc._id), (err, d) ->
         assert.ifError(err)
         ignore = ['_id', 'tilbyder', 'endret', 'checksum']
         assert.deepEqual d[key], val for key, val of doc when key not in ignore
         done()
 
   it 'should add new documents to cache', (done) ->
-    doc = gen.gen()
-    req.post(url).send(doc).expect(201).end (err, res) ->
-      assert.ifError(err)
-      cache.getForType 'turer', res.body.document._id, (err, d) ->
+    req.post(url).send(doc).expect(201).end (err, res) ->
+      assert.ifError(err)
+      cache.getForType 'steder', res.body.document._id, (err, d) ->
         # @TODO undefined values
-        assert.equal d[key], val for key,val of cache.filterData('turer', doc) when val
+        assert.equal d[key], val for key,val of cache.filterData('steder', doc) when val
         done()
 
   it 'should warn about missing lisens field', (done) ->
-    doc = new Generator('turer').gen exclude: ['lisens']
-    req.post('/turer?api_key=dnt').send(doc).expect(201).end (err, res) ->
-      assert.ifError(err)
-      assert res.body.warnings, [{
-        resource: 'turer'
+    delete doc.lisens
+    req.post('/steder?api_key=dnt').send(doc).expect(201).end (err, res) ->
+      assert.ifError(err)
+      assert.deepEqual res.body.warnings, [{
+        resource: 'steder'
         field: 'lisens'
         value: 'CC BY-ND-NC 3.0 NO'
         code: 'missing_field'

        done()

describe 'POST', ->
  gen = new Generator 'turer', exclude: ['_id', 'tilbyder', 'endret', 'checksum']
  url = '/turer?api_key=dnt'

  it 'should insert single object in collection and return ObjectID', (done) ->
    doc = gen.gen()
    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('steder', col))
        .expect(404)
        .end (err, res) ->
          assert.ifError(err)
