Add test/ringbuffer into CMakeLists, and debug the RingBuf pick_event function