functional MainMenu with test class