add ring buffer test

should not publish events if batch is larger than ring buffer
change order of parameters in publish events and try publish events method for ringbuffer
update ring buffer test
add ringbuffer testShouldPublishEventsWithBatchSizeOfOne()
add rinbuffer testShouldPublishEventsWithinBatch()