Add connect() tests.