tests: add tests for buffer option