add regression test from @crosbymichael