Added unit tests for port handling in trivial core.
3 files changed