Tests for cache.
Add tests