Regression test for issue #411