Background update of cache

1) Tests of the cache class are broken. Still need to fix those. 
2) One round of testing for the background refresh