Move connection test to end of test script

It takes at least a second, usually 4 just in sleeping.