add tests for sum() and avg()