added test for pickleability of quantity.