improve package import

export portal type to json
construct instance
update fields
store json data in tests folder