Add test for complete_sum