Move functionality into more functions. Break down the current test and just test creation/joining the network.