update mocha to fix recursive loop