buffer tests