adding waitConnected to linear5 test

this is the test that dies occasionally in the nightly builds. forgot to add this in my last pull request