ringbuffer: add test for add_one and get_one