Removing wrong use of event argument and old alert test