Fix network connection in self test.