regression test for gh #482