new serialization factories and tests