Fixed mistaken redirection in tests when in tomcat