cache index, test fix