Add tests for cache.getall.