Add test for incorrect password

This change enables the test for an incorrect password.

It also adds a delay while waiting for Tomcat to respond, which prevents
a timing error on Tomcat start. Tomcat_helper and session_helper were
also refactored (while chasing the error) to be more readable.

[#64604720]
Merge branch 'configure-password'