Added regression test for bug 931.