For 3.1 automation, add close right menu in GroupsTest.