Add more tests for cache