Hey,
Are you talking about the endpoint /sapi/v1/userDataStream?
The endpoint /api/v1/userDataStream is deprecated since Q1 2020.
For the endpoint /sapi/v1/userDataStream, you unfortunately can’t use it with Testnet. For more information, I invite you to have a look at the documentation: https://testnet.binance.vision/