Test the password generator