reduced the test for closing by clicking “close”