Test for ticket (#22023)