Fixed tests for sending mails