added test case for menu widget

fixes #5080