Add file caching unit tests