fix: tests: debug log for tests by default

and fix test that didn't consider that there might be other logs from
other threads.

Closes #33797.
8 jobs for maint-1.1 in 24 minutes and 18 seconds (queued for 3 seconds)