Added test for sumOf utility method