fixed race condition in $connect tests