Add test coverage for text search and sorting by text score