[Platform] Add tests for Import/Export menus

Add unit tests for Import and Export submenu
extension points in the platform. Enhance
logic of menus to account for cases considered
while writing tests.