Add regression test case for #51