Add tests for the index and data files caches.