Adding buffer tests