Refactored ApplicationTest, added a helper method to verify that menu is displayed t times