Improved tests for ring buffer. Test with num events > buffer size.