use sinon for test