Add tests on eponymous parent traversal

Requested test case for #1266 (on #1039). Added to the existing features.