Fix Mocha tests.