Fixed the email subject, and added some tests.