fix unit test from mocha update