adding more edge tests for sum method