Added edge cases for text search test