Add test case for #14709.