Add connecttimeout, readtime, protective setter for
apisession.setrefesh, modify query test.