added new serialization factories and their tests