add tests for send mail