Ensure the logger is initialized for the test class