Add `portFor` test.