Added test case to text functions.