WIP: added mocha tests