exit 1 on error for tests