Test error conditions RingBuffer.