I assume that you are checking the json response, not the Google Play email newsletter, which includes the order number.
The JSON response should not include orderId if it was a test purchase. This has been confirmed several times. Make sure that the account you use to verify the purchase is included in the license verification accounts in the Google Play Developer Console> Application Settings> Account Information, and then in the "License Testing" section.
Check here
When your billing implementation in the application is ready, you can check the purchase of your SKUs in the application in two ways:
Test purchases that allow selected users to check the licenses of your products in the application without any user fees. Checkout purchases can only be used in alpha beta versions.
Real purchases that allow ordinary users to make real purchases of your products in the application with actual costs for users' payment instruments.
source share