(Reuters) - Wal-Mart Stores Inc said on Friday it was testing a service in the Silicon Valley to deliver groceries straight to customers' refrigerators as it looks to gain an edge over Amazon.com.