Added code for overflow detection
Added a test that creates events in 3 classes, and then polls for them one at a time