Tests for new added sum method