menu: add menu testcase and implement