key array test for indexOf