tests: fix model_json output with alphabetical order