Issue #44: Add regression test