Convert Criteria in unit tests to dicts.