Improved tests for valid passwords.