Backport buffer() tests from trunk to avoid regression failures.
2 files changed