use defaultdict instead of OrderedDict for testing purposes, since OrderedDict is not supported in Python 2.6