unit testing : mail