added mocha testing