Regression test for #618

Fix for #618 is pending.