Answer with sum of the path. Added test.
Corrected tests with callback.