emulating JSON OrderedDict usage in test