Add a unit test to exercise the connect_reject() code path.