Text Highlight: Added dynamic functionality and test cases