Given several Python classes/objects, debug which test functions are failing and why, then fix them (one part: modify an existing function; another: write a new function)
Asked in the Later round (points-walled) stage. Implement the corrected Ledger.total method and write find_failing_tests to execute test specifications against Ledger and CappedLedger objects.
tests is a list of dictionaries with name, kind, values, expected, and, for capped ledgers, limit. Return a list of dictionaries for failing tests, each containing name, expected, and actual, in input order.
kind is either ledger or cappedlimitdef find_failing_tests(tests):