[#78596198] add test for error branch of ui.Ask