Test case for a GHC bug concerning the unnecessary loading packages when TH is used