Added test case for sending mail