Alter tests subject to intermittent failure on inconsistent dict ordering

fixes #592