add test code for Rfc822