[Email] Make mail-app unit test workable.
Merge pull request #7927 from steveck-chung/email-test-mail-app

[Email] Make mail-app unit test workable. r=asuth.