Tests for method findIndex().