fix unit test setup and add sinon.js
add sinon file