added sinon snippet