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

Fixes #372.