close window test