Fix code for setting the value of rhost
Add test code for checking delivery status and bounce reason