Added portId test to the generator's test suite.