fixed mocha test