Ensure logging works in tests