Use path instead of name to identify tabs
Add test case