This tests if the caret position is aligned correctly.