added several unit tests for text_handler