add sum test case
add logic for sum of products