Add test for bug #21259.