Test beam results and integration of the ATLAS level-1 Muon barrel trigger