spy testing for caches added