Fix tests for apps/UnifiedEmail.

They stopped compiling due to changes in O.

Issues fixed:
- Handler created on a thread without Looper.
- Method not visible from userdebug built tests.
- Exception thrown due to mismatching authorities in ContentProvider.

Test: The tests compile and pass.
Bug: 33609522
Change-Id: Ibe74c1d2f7c9a3cb16839ad0db1117146757c523
7 files changed