add pickle unit tests