Change test for []() to only call on obj[index]