test parsing events