fix use of sinon