Create subnet unit test

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