Extract serializers out of JsonFormats file
Move tests into corresponding packages