Test beam results on the ATLAS electromagnetic calorimeter