tests for buffer and clean up
coverage