Resize file cache with tests.