test port function
detailed error description