fixing mocha test