move generic sum to tools

the function can be used in different tests
demo of the async calculators