4c9b30db introduced a regression in buffer.slice that 7c3c51b8 fixed, but no test had been added to make sure that a similar regression is caught by the tests suite in the future.