refactoring - use mocha for all tests (sinon.js)