Add regression test for #248 (already passes)