added tests for instance/array index