Return an error when running tests on testnet
Fix infinite recursion bug when updating address balances
More accurate address balance calculation, taking confirmations into account