avoid 'global leak detected' with mocha