Helper method for setting the user input password in tests