Fix ToolbarItem and MenuItem role test