Code improvement: Persistent Network Test cases, Adding check to verify network state and fail test case in case network state is not as desired