add test cases for texthandle