fixed tests that broke with code motion. refactored linebuffer to have reads decoupled from writes