Add regression test for #1555