Regression test for #370