transferProxAdminOwnership usage in test environment

I want to use admin.transferProxyAdminOwnership() to transfer the ownership of the proxy admin contract. This works, but if I test again, then it will throw an error saying the caller is not the owner. Is there a way I could avoid this problem in the way I transfer the ownership.

:computer: Environment

I am using truffle's testing tools on solc version 0.5.16.

It sounds like the expected behavior. Can you share the tests you're running?