short test for caching logic