added test for cache