       done()
 
   it 'should return error for missing request body', (done) ->
-    req.post('/turer?api_key=dnt').expect(400, done)
+    req.post('/steder?api_key=dnt').expect(400, done)
 
   it 'should return error if request body is an array', (done) ->
-    doc = new Generator('turer').gen()
-    req.post('/turer?api_key=dnt').send([doc]).expect(422, done)
+    #doc = new Generator('steder').gen()
+    req.post('/steder?api_key=dnt').send([doc]).expect(422, done)
 
 describe 'PUT', ->
   it 'should not be implemeted', (done) ->
-    req.put('/turer?api_key=dnt')
+    req.put('/steder?api_key=dnt')
       .expect(501, done)
 
 describe 'PATCH', ->
   it 'should not be implemented', (done) ->
-    req.patch('/turer?api_key=dnt')
+    req.patch('/steder?api_key=dnt')
       .expect(501, done)
 
 describe 'DELETE', ->
   it 'should not be able to DELETE', (done) ->
-    req.del('/turer?api_key=dnt')
+    req.del('/steder?api_key=dnt')
       .expect(405, done)
 

      assert.equal typeof res.body.document._id, 'string'

      id = new ObjectID(res.body.document._id)
      cache.getCol('turer').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']
        done()

  it 'should handle rapid requests to collection', (done) ->
    this.timeout(5000)

    count = 100
    docs  = gen.gen(count)

    for doc in docs
      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(200)
        .end (err, res) ->
          assert.ifError(err)
