r:panelMenu refactoring

tests rewritten