add tests to GetPort