testing listeners and alerts