testprogs: Add a new test_password_settings.sh script