buffer: Set correct shift in buffer_linear_new
tests: Add test case for linear shift