fix test_serialization nosetest error