on test for alert directive