Add basic test coverage for connect()