added mocha and some tests