tests: Add regression test "framework" and test for github-#0098.