add a regression test from David Crawshaw