Use table testing for makePort tests

If it's only used in one test, perhaps make it part of the test body?