Amazon.com Inc. is designating products sold by certain companies as “top brands,” a test that if widely implemented could ease tension between the online retail giant and big-name companies used to favorable positioning at brick-and-mortar retailers.