Add test for __getitem__ syntax on str