Add test for #12172