Added unit tests for complex logging messages.