mmm be careful here, you're testing the 2 functions in the same time.

You need to:
* call init with isDocumentHidden to false
* reset the spys (call "reset" on them)
* set isDocumentHidden to true
* send the event
=> test if stopScheduler has been called