fix globals for mocha