Introducing unit tests. Testing widget visibility