fix(event_history): fix a bug in event queue

This adds some comment fixes and a test to Xiang's PR #410.