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 (closed).
and fix test that didn't consider that there might be other logs from other threads.
Closes #33797 (closed).