added multiplatform test for CacheDirectory