Unit tests for Email

It's not much, but it's a start
Merge pull request #2511 from kinglozzer/email-tests

Unit tests for Email class