Added unit tests of Email module