Testing the pickling