More tests for buffer.