doctest can fail because of dict ordering