MDL-37893 Add unit test to demonstrate the issue
MDL-37893 Allow elements with no final tags to form a grouped path