Add test for text index and search