Fix logging and encapsulate vars in TestWebAppProxyServlet