Add regression test for GH5963