add network connection test in register