making caret position tests pass on firefox