add rfc5424 test and fix bugs