Add regression test for pseudo-hierachy via iterator delimiter and prefix.

Fixes #372.
SGTM, just add a comment explaining the need for it.