test hash caching