sanitize another occurence of alert() when running tests.