Text Highlight: added support for arrays and added more test cases