refactoring
initial implementation for retrieving context menu item names with test cases