Write unittests for ringbuffer
Merge pull request #6 from authmillenon/ringbuffer-update

Ringbuffer update