Refactored TextCursor::move_cursor() and TextCursor::set_cursor_line_position. Added more tests