[Git][ghc/ghc][wip/sjakobi/T4081] testsuite: Add regression test for #4081