refactoring for menu-item
tests for menu-item
fix menu-item_type_link usage test