Added tests for sum_of_min_and_max