fix debug logging in tests for reals