getPortInState test was implemented