Replace network_test with unit tests from xen-api