Added coverage for get port/host