test alert handler