fixing the switch_to_window test