added sinon expectation