Added test for sum_series function