added multi-thread test for the ring buffer