Test for using cache.