checkEncryptedPwd() in testClassDBRolesMgmt.sql only checks for md5 passwords. If an instance is configured to use scram-sha-256, the test will fail.
EDIT: Other parts for testClassDBRolesMgmt.sql also seem to fail when using scram-sha-256().
ERROR: Invalid argument: server role "<role>" already exists
CONTEXT: PL/pgSQL function createrole(idnamedomain,character varying,boolean,idnamedomain,character varying,boolean,boolean,character varying)
Is thrown on the following lines (does not occur when password_encryption = `md5'):