Performance of the CREAM calorimeter in accelerator beam test