System test of the ATLAS muon spectrometer in the H8 beam at the CERN SPS