Bugfix and add test cases for parseBalanceChanges
Bugfix in parseBalanceChanges