added test for ringbuf_memcpy_from_offset