what you need to test is how your app reacts when visibility monitor kicks in. You don't need to test the visibility monitor itself... at least in the unit tests.

In the integration tests, it's perfectly normal to test it, obviously.