Add caret position markup for test at caret positions