Fixes #5593 made the unit test deterministic