wait for socket connection before running tests