add buffer tests