Space qualification tests of the PAMELA instrument