tests for write-stream encoding
test for batch op encoding