Test for json result sorting util function

Test that all returned json results have sorted dictionaries.

Closes #20