pass test for object key/index