init the tomcat connection outside main; add tomcat tests