<< Test Shopify Discount Code >> indicates that it is a test email sent from Mailchimp. Mailchimp does not add actual merge tag values in test emails.

As you can see, the same is true of the subscriber's first name. If you want to test generating discount codes, you need to sign up for a newsletter/place a test order in your shop, or take another action depending on which trigger you have set up.