Adds a fixture for setting up the cache

Certain tests will fail in isolation becasue the cache isn't properly
configured. This fixture will clear out any old configuration and
correctly configure the cache.

Change-Id: I6ec944880dea930771906a63a76400fe3d10e299
Closes-Bug: #1251300
Merge "Adds a fixture for setting up the cache"