Added methods to EmailEvent and some of their test cases.