 
       cube.labelVoxel([1, 1, 1], 42)
 
-      setTimeout((->
+      _.defer ->
         expect(pullQueue.add.calledWith({
             bucket: [0, 0, 0, 0],
             priority: 123})

        expect(pullQueue.add.called).toBe(true)

        done()
      ), 50)

mockRequire = require("mock-require")
sinon = require("sinon")
_ = require("lodash")

mockRequire("../../../oxalis/model/binary/pullqueue", {
  prototype : {
