Ignore attempts to hide an already invisible window. Add a test case