You dont need to cache the spy, `sinon.spy(navigator.mozSettings, 'createLock');` is enough