Add cache directory when running tests.