add regression test for #186