Ringbuffer: more tests
Ringbuffer: fixed test