created test to sum method