shelve cache for unittesting