add testsuits for connect and index