The asserts are failing because the relevant logs are rotated off the server's buffer of log messages.
We set the verbosity on each shard to level 3. We should either modify just the verbosity level of query logs or find some other way to avoid overwriting the logs.
This definitely applies to sharded_lookup_execution and may apply to lookup_unionWith_subpipeline_local_read.