Updated tests for TestConnection.