update event api + define first test