[Git][ghc/ghc][master] Improve tests for `elem`