Add unit tests for ports and subnets.

Add unit tests for ports and subnets of midonet plugin.

Signed-off-by: Ryu Ishimoto <ryu@midokura.com>