Fix issue with the connect expect logic caused when running teston then the test instead of running both from one command