Added ringbuffer tests