Fix test failures due to hash randomization (RT #81561)