added tests for string indexing with .