Unit Test: Clear cache after setting the preference to prevent other tests side-effect