test: fixed CacheTest.test_noroot() when running as root