Add more unit tests.
Fix RFC 3164 date to be local time, extend unit tests.