pickling in binary + test set