only invert amount values in transaction history if the account is credit_positive, and add tests to test it