Bugfixed the class serialization test to conform PEP 3155