Fixed a test that could fail depending on PASSWORD_HASHERS.

Thanks Claude. Refs #20760.