Add failing test for ticket #23640