Added unit_test for test-connection-fail