Add ring buffer test