adding test connection method