added sinon test