Add regression test for #169