Add testnet support with --testnet flag. Resolve #5