[Network] Add a class NetworkTest to test the message exchange by the network