I think that you should eventually mock the visibility monitor instead of trying to control him, it would make it easier to test your file.

I tried to do it before asking but it was not _so_ easy to change everything, so I'd suggest to land this (so that we can move forward with mocha) and file a follow-up to add a mock for the visibility monitor.