[buffer] add more tests for missing functions