added more test cases on connect action