Improve password automation for tests.