Added regression test for bug fixed in immediately previous commit