ledgerfile: file open and close stuff
test_ledgerfile unit tests, 100% coverage