Unit test for port operations

Change-Id: Ia861deb42fc9420d88917bb96271d5d539f3e365