Unfortunately these tests reminded me again of the fact that python's dictionaries are not sorted.