Put the ring buffer behind an interface--easier, faster tests, no threading concerns or Thread.Sleeps.