Test the edge cases for caretPositionFromPoint, where the point is at the edge of glyph and at the midpoint.