Fix SumTypeTest for generic