fixed connection testcase