Fixes to output buffer callback
Some more tests