Initialize nitos with mocked server in networkManagementTest.
Fix bugs in network creation cotaining a nitos network.