Wrapping set() validation stubs in sinon.