test update and added sinon