Quality Assurance and Characterization of the triple-GEM tracking Detector for COMPASS and AMBER Home