update test alert code