Fix the setup of logging for the tests.