Etsy said Wednesday it will begin testing its first-ever loyalty program in September, a move designed to boost the e-commerce site’s sluggish sales and draw in occasional shoppers.