Caret positioning tests and manipulation for Issue #430