Fix log message helper tests