Refactoring path handling and adding support to add submenus in bulk
Adding test for the recursiveness of the submenu renderer