Add pickle.dumps tests