only print/test on debug
exit on failure