You can't - app service names are globally unique and they form part of the app's default domain.
Moreover, normally, you want TestApp in different regions to be the same app usually for reasons of high availability or being close to the end user.
If you don't, you need to differentiate them by giving them different names.
See very similar Does Azure Function App require a globally unique name?