Write unittests for ringbuffer
Implement packet buffer module