Fix for latest mocha version