Add regression test for bug #21108.