added mocha/chai/sinon tests