fix setting of newest_event_id when there are no events; make specs better