add unit tests for functions 'sum' and 'max'