Fixed sum_series assertion