Add Mocha tests