Ancestor queries to stabilize test results which were flaky on dev_appse...

...rver.