Fix CalendarProvider test race.

The CalendarProvider has a background thread to do timezone updates.  This
background thread causes problems with unittests because it may try to access
the database after it has been closed.  This change prevents the background
thread from being created when testing.
3 files changed