Fix test and tomcat setting.