Added test for addtotextindex.