Add tests for bufferutils