test convert_from_spans