Walmart is testing a free two-day delivery service for subscribers who pay $49 annually, another volley in an e-commerce war between the nation’s largest retailer and web superstore Amazon, whose $99-a-year Prime service offers the same delivery time.