Restored -testnet functionality