fixed module.exports bug, restyling mocha test