Add regression test for #280