[TEST] Add nearly full test suite, reafactor all functions to AccountHistory class