Export more test-related variables when running external tests