test: add debug logs

Add debug logs to troubleshoot two unit tests failing
on the CI server only.