Automated tests for email notifications