Before this change we check that it is there, then don't look in the ancestors. A test would be useful. Fixes gh-191