proper termination from events
adding ringbuffer tests