Fixes cache configuration in tests