added unit test for caret escape