Added test for buffer