Add regression test for #272