Use 'void 0' instead of 'undefined' global variable
Added Mocha tests
Removed old test files