Added unit test for email handler and fixed classname misspelling.
fb-00159