So I add an event listener to `window` for 'mozVisibilityChange' and in order to test I need to fire that event (which I can do if I have a reference to `window`... Can you think of a better way to do this?