TxBuilder: remove unused variable
TxBuilder: sign now signs inputs in known publicKey order
tests: remove unused/undefined variable usage