Tested sending mails when error occurs. Test suite is green.