Add unit-test for edit event page