Added sum and TestSum methods