added working mocha test