Test configurations that set "random_migrations: true" cause the planner to choose a different sharding plan for the lookup query in the test.
Explain for this query doesn't show any information about the sharded part of the plan so it is not possible to verify whether it used EOF or not.
The solution is to disable the test under those configurations that set this flag.