Implement test caching