Fix up testnet tests and configure a Travis testnet job.