Refactor SyslogParser test