add a flatmenu unittest to show crash when one does e.g. a flatmenu.Popup

- in lib.agw.flatmenu needed to test GetMainLoop as it returns None during test