add_network function test