fix test_serialization nosetests error