Make process exit on test failure configurable