Beam Test Results of the LHCb Electromagnetic Calorimeter