Fixing unit test failures, making all environment period queries based on upper case environment period names

[#53022305]