       chai.expect(Object.keys(solver.jobs)).to.have.length 0
       solver.runJob filter, page, options, (err, outdata, details) ->
         chai.expect(outdata).to.not.exist
-        chai.expect(err).to.be.a 'object'
+        chai.expect(err).to.be.a 'error'
         chai.expect(err.message).to.not.include 'returned falsy'
         chai.expect(err.message).to.not.include 'and no Error'
         chai.expect(err.message).to.include 'child process terminated'

      options = {}
      solver.runJob filter, page, options, (err, solution, details) ->
        chai.expect(solution).to.not.exist
        chai.expect(err).to.be.an 'object'
        chai.expect(err.message).to.contain 'thrown in polySolvePage'
        done()


      options = {}
      solver.runJob filter, page, options, (err, solution, details) ->
        chai.expect(solution).to.not.exist
        chai.expect(err).to.be.an 'error'
        chai.expect(err.message).to.contain 'function'
        chai.expect(err.message).to.contain 'line'
        done()
