adding connection testing method