Fix "index exists" test.