fixup! use sinon.stub instead of hand-crafted code