added testing function to values_cache