add sinon.js to test events