Added email tests for simple email and email with attachments.