Hello @Ruben ,
Welcome to Microsoft Q&A!
There is no test APIs that could test the in-app purchase as free. Currently, you could your own account as the tester and you don't need to set the add-on as free. You could create a free add-on that is only available for private to test your code.
Thank you.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.