[#71587328] Fixing logic error with changing the domain for testing envi...

...ronments.