ATLAS electromagnetic calorimeter, construction and test of a large scale system