Update `TestPropertyValues` so that it can also be used to update system properties. Properties are set before the call is made and restored to their previous value afterwards. Fixes gh-9792
Update `TestPropertyValues` so that it can also be used to update system properties. Properties are set before the call is made and restored to their previous value afterwards. Fixes gh-9792