Test if caching works