Add a test for using cache