Added tests for text module.

added tests for text module.
modified order of REGEX_LATEX_SUBS and REGEX_UNESCAPE_LATEX_SUBS in text.