Regression test for issue #2053