added mocha test