Added test case for connection success