Fix test for latest mocha