[Git][ghc/ghc][master] Add tests for #23973 and #26565