Add cache tests.