adding waitConnected to linear5 test