Refresh the Cache in tests so that custom variable max slot\ is properly initialised, and all segments are found