fixes #8: add regression test for "descendant includes ancestor" bug

Fixes #8.