Use Array#sum_with_identity instead of Array#sum in tests