added test for indexing text field