Parameterized the connection test