Add regression test for bug #10392.