What I ended up doing. With main App ID, changing to a SandBox account in TestFlight and managing subscriptions
create a test SandBox account in AppStore Connect
under the main App ID install the application from TestFlight (close your application if you have opened it)
go to iOS settings -> App ID -> Content & Purchases -> Exit
tap again Content & Purchases -> login as a test account
manage subscriptions -> iOS settings -> AppStore -> sandbox account -> login under test account