Add a failing test for handling nodes that are in the same linear chain.
It fails because the ancestry skipping causes us to miss the fact that the two nodes are actually directly related. We could check at the beginning, as the code used to do, but I think that will be incomplete for the more-than-two heads cases.