fixed ringbuffer
add ring buffer test

testShouldPublishEventsWithArgs()