Update history and balance, add history test file.