Implemented hasPathSum, with one more test.