Added test for menu. tested with robolectric! ref #2504