The space-borne INTEGRAL-SPI gamma ray telescope: test and calibration campaigns