Bugfix: connect-to-first-available parameter order

Embarrassing! I also added a missing test which would've caught the bug when calling 1-arg version of `connect-to-first-available `.