py3: use as_dict() in unittests