Added tests for caches