Unittest complained about class being serializable.