Add a couple tests for decoratedTx.addChange()

Also move the calculateFee() function as a field of decoratedTx.