Add test for nonarray indices