Before this test would only work connecting to an open wifi network.
I guess @bebef1987 put this in so the test would complete with either kind of wifi network.