Added simple ringbuffer test and updated implementation of RingBuffers read and write methods to actually work