Test cleanup for setTimeout/setInterval/etc to prevent hang during unit test runs
Test cleanup for setTimeout/setInterval/etc to prevent hang during unit test runs

Auditors: @bridiver

Test Plan: `npm run unittest -- --grep="ledger api unit tests"`

luixxiul/browser-laptop,diasdavid/browser-laptop,diasdavid/browser-laptop,luixxiul/browser-laptop,diasdavid/browser-laptop,diasdavid/browser-laptop,luixxiul/browser-laptop,luixxiul/browser-laptop