Adding explicit error message in verifyNetworkState function in case network is not in desired state