Why even keep the sorted? I think it was there because it's the only way to confidently compare the keys in two dictionaries. But we're not interested in that now are we? Perhaps there's something I just don't see right now but surely this should work with
```
self.assertEqual(res, data['res_expected'])
```
No?