Added some tests for ringbufferwindow code.

Using 'check' library for unittesting.
Added tests for RingBufferWindow class
RingBufferWindow now fills in all packet seq numbers
Fixed memory allocation for ring buffer's packets
added tests for ringbuffer get_packet_n and get_next_packet