Unit tests for email-sender