add testnet dns and log4j for unit tests