Internal Test: Verifies the filtering of nested matches using RootLevelOnly and InnermostOnly options.