fix tests for custom cache dir