added CheckCCFlag and CheckCXXFlag tests