Tweak App test to only run that code in #main that does not require direct user input.
Add preliminary tests for EnvSetupFilter.