test of deleteEvents