Isolating components with Sinon.JS