More tests, add flag for prepared event to evade errors in event_add