Fix various integration tests

See detailed description in each individual commit for more info.
Yes, I don't think we _ever_ need this check, only for `DEBUG` and `TRACE` logging should there be a check.