Bug fixes in buffertest.c, and expected output.