Tests: Add case for ENVIRONMENT_MODIFICATION property OP=reset behavior

When processing the reset operation in the context of a CTest
`ENVIRONMENT_MODIFICATION` property, the value the variable is reset to
is the one it had after `ENVIRONMENT` was processed, not before.

This was broken once during refactoring and is subtle enough that it
should be tested.
7 files changed