Got buffer to pass existing test
Added peek test for buffer, fixed a bug