add sinon.js
fix attachment view to bypass