Improved buffer test.