The method json.dumps() does not always return the same order of keys because
in python dictionaries are unordered. This patch fixes this failing
test by telling json.dumps to sort the response before returning.
Change-Id: I13a4ce79cd4a8734094bef85ce0943fee25cbbc9