Make warning log messages testable