Added more test cases to text functions.