unittests to test the order of data in repositories.json

Hi, I have added some unittests that read the repositories.json file and test the alphabetic
order of the items in 'repositories' and the keys in 'package_name_map'
and 'renamed_packages'.  I also reordered some of the entries in repositories.json which
were out of order and failing the tests.