Some ringbuffer tests