Add test cases for buffer motions