Beam test results on Si and GaAs microstrip detectors with length up to 64 cm