Fix caret tests