As mentioned in the other comment, you could add

* testValidComparisonToArrayIndex and
* testValidComparisonToNestedArrayIndex

here (and their invalid counterparts, of course.