added testPickling