TEST: unit test for connect fix.