Review comment: https://github.com/Azure/autorest.typescript/pull/3809#discussion_r2893431813 and it's better to refactor the generate-test logic to a single place with simpler setting