Added test for email messages