Add tests on eponymous parent traversal

Requested test set for #1266 (describing #1039). Added to the existing features.