Added GLOBAL keyword to some variable in Mocha test