added unit tests for DHNetworkManager