Implement new network_create API

To make the test transition nicer, make a helper function in test_common, that
imitates the old network_create API.