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

Fixes #372.
Is this necessary after doing the first two?