fixed pickling tests