Removed a global variable leak. Added a --check-leaks options to mocha.