listenbuffer: add docs and test Upstream-commit: 7c2cc476da6fcff4dd1304d41f9b67a0f4b309b7 Component: engine