add sample code to test alert