Added password encryption functional tests.