ringbuffer: add static initializer
ringbuffer: add test for add_one and get_one