tweaked test_buffer.py