Add test cases for Connection object