tests for renaming root in Match/Selector