Add tests for new serialization. Also reformat file with yapf.
Add tests for new serialization. Also reformat file with yapf.

GeoMatDigital/django-geomat,GeoMatDigital/django-geomat,GeoMatDigital/django-geomat,GeoMatDigital/django-geomat