Refactor MenuTest.