use consts for alert types and priorities to prevent invalid ones, add testing for event objects