Add a couple tests for decoratedTx.addChange()

Also move the calculateFee() function as a field of decoratedTx.
I'd think the comment should start with the name of the variable. I.e. 'hasChange indicates whether this tx includes a change output or not. If it does...'