Split assertions into separate test methods

Ensure we have a consistent set of pertinent environment variables (and
restore them all correctly).