Add a regression test for #221