Added test case for #21206.