Fix cache directory of tests