added buffer tests.