Added regression test for previous fix.