Make ledgers work with tests