tests: Clean up compatibility code with endpoints that return dicts.
They are all migrated to attr classes now.