Added testnet flag in daemon