Adding mocks for cache tests