Add test for RT #122746.