Fix tests and bootstrap bitcoind datadir