fix bug in processed events checking

fix bug in processed events checking and finalising
triggeredAfterTimeToExplodeTest