prevent connection on instantiation, connect/request timeout settings

make checkConnection() public for tests