Test beam and irradiation test results of Triple-GEM detector prototypes for the upgrade of the muon system of the CMS experiment