Fix tests, few lint warnings plus some BitcoinException usages in Transaction class