Test implementation of nonblocking connect()