Add tests for email sending from comments #18