test: Fix punctuation in exceptions for log env vars

The Exception text was missing a closing parenthesis, and for consistency
with other Exceptions it should not end with a period.