fix in translate and publish batch (ring buffer)
add publishing tests for ringbuffer