testing resource caching