Improved test coverage with multiple messages and checking the log file
contains the required logging data.