add TEST env var during tests and silenced parserun during tests

Fixes #1557