Eliminated DeprecationWarning from test_pickling.