Fixed unit tests for ports and subnets

Change-Id: Ic4137c373d53bb2f586c3144201686d472f90b21
Signed-off-by: Rossella Sblendido <rossella@midokura.com>