moved pickle test into module