test closing the tab