Fix indexing in TestBench 4 cursor detection (#13170)

Change-Id: I6c67cf8a27e81f4a0311f4704db5b5fae7b8964a