Bugfix: `point` shouldn't move backwards when typing in a buffer

Add a unit test for the fixed bug