sinon.js and sinonSpec.js example test