refactoring ledgerfile unit tests (and ledgerfile methods)