While the software paths are the same on test and prod (which they normally are), the test and prod instances exist within their own logical partition (LPAR).
For example, you would have 2 physical machines, each with a prod and test LPAR. On machine 1, the PROD LPAR is normally active, with the TEST LPAR not doing anything, and conversely on machine 2 you have the TEST LPAR normally running and the PROD LPAR just sitting there.
In the event of prod failing over, the PROD LPAR on machine 2 would get mounted and become active with the prod stuff, and the TEST LPAR would continue to run, but likely at a reduced priority.
So, it’s like they are on separate machines even though they reside on the same physical piece of hardware when the fail-over happens.
I would recommend talking with your Sys Admin to understand how fail-over is configured in your environment.
Hope that helps.
Jim Cobane
Henry Ford Health