index out of bounds fix in concurrent cache test