     describe 'when called with an CheckToken job', ->
       beforeEach (done) ->
         datastore = new Datastore
-          database: 'meshblu-core-test'
+          database: @databaseUri
           collection: 'devices'
 
         record =


describe 'QueueWorker', ->
  beforeEach ->
    @clientId = uuid.v1()
    @cacheClientId = uuid.v1()
    @client = _.bindAll redis.createClient @clientId

    @datastoreFactory =
      build: (collection) =>
        new Datastore
          database: @databaseUri
          collection: collection

    @cacheFactory =
