add more test for mail feature