made changes to text handler, added new test file.