A few tests for buffer