added mocha test case