working mocha tests